import request from "@/utils/request"

//设备总数
export const getAllEquipmentNum = (params) => request({
    url: "/m2i/m2i/statistics/subgroupcount",
    method: "get",
    params
})
export const getAllnodestatus = (params) => request({
    url: "/m2i/m2i/statistics/nodestatus",
    method: "get",
    params
})
//各个plant_and_equipment
export const getplantandequipment = (params) => request({
    url: "/m2i/m2i/org",
    method: "get",
    params
})

export const getproperty = () => request({
    url: "/api/api/v1/property/statistics",
    method: "get"
})
export const getlatestdata = (data) => request({
    url: "/apm/api-apm/api/v1/latest/data",
    method: "post",
    data: data
})
// 工单

export const getstatistics = (data) => request({
    url: "/ticket/api/v1.0/tickets/screen/statistics",
    method: "post",
    data: data
})

export const getticketcount = () => request({
    url: "/m2i/m2i/statistics/ticketcount",
    method: "get"
})
// export const
// 工单状态

export const getallFields = (data) => request({
    url: "/ticket/api/v1.0/data/tickets/all_fields?type=quantity",
    method: "post",
    data: data
})
//告警
export const getprocesslist = (data) => request({
    url: "/apm/alarm-process/api/v1/event/list",
    method: "post",
    data: data
})

export const getalarmcount = () => request({
    url: "/m2i/m2i/statistics/alarmcount",
    method: "get"
})
// 能源管理
export const getsimplejson = (data) => request({
    url: "/bee/v1/simplejson/query/v1",
    method: "post",
    data: data
})
//登录
export const login = (data) => request({
    url: "/m2i/m2i/srpframe/login",
    method: "post",
    data: data
})



